package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.PointsRule;
import com.nbsaas.boot.marketing.api.domain.response.PointsRuleResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 积分规则-实体对象转化成响应对象
*/

public class PointsRuleResponseConvert  implements Converter<PointsRuleResponse,PointsRule> {

    @Override
    public PointsRuleResponse convert(PointsRule source) {
        PointsRuleResponse  result = new  PointsRuleResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

